package com.chen.Dome5_synchronized_method;

public class Threadsafedome1 {
    public static void main(String[] args) {
        //目标：解决线程安全问题,实现线程同步方式二：同步方法
        Account acc=new Account("123456",100000);
        new drawThread("小明",acc).start();
        new drawThread("小红",acc).start();
    }
}
